import request from '../axios'

export const getCategoryTree = (params) => {
  return request({
    url: '/api/blade-article/article/category/query',
    method: 'get',
    params,
  })
}

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-article/article/page',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    },
  })
}
